sudo chmod 777 /opt/lampp/htdocs // lazy and risky fix
sudo chown –R [Username]:[Groupname] /opt/lampp/htdocs // Better to change the owner than to allow everyone to access the file